package com.freesky.biz.icbc.domain;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.alibaba.excel.annotation.write.style.*;
import com.alibaba.excel.enums.poi.BorderStyleEnum;
import com.alibaba.excel.enums.poi.HorizontalAlignmentEnum;
import com.alibaba.excel.enums.poi.VerticalAlignmentEnum;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.freesky.common.annotation.Desensitized;
import lombok.Data;

import java.util.HashMap;
import java.util.Map;

/**
 * 工行存管
 */
@Data
@ContentRowHeight(22)
@ColumnWidth(25)
@HeadRowHeight(25)
@HeadStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)//表头样式
@ContentStyle(horizontalAlignment = HorizontalAlignmentEnum.CENTER,
        verticalAlignment = VerticalAlignmentEnum.CENTER,
        borderLeft= BorderStyleEnum.THIN,
        borderRight= BorderStyleEnum.THIN,
        borderTop= BorderStyleEnum.THIN,
        borderBottom= BorderStyleEnum.THIN)
public class TEquityReceive implements java.io.Serializable{

    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    private String id;


    @ExcelProperty("客户经理姓名")
    private String clientName;

    @ExcelProperty("客户姓名")
    private String name;

    @ExcelProperty("手机号码")
    @Desensitized(type = Desensitized.DesensitizedType.PHONE)
    private String mobile;

    @ExcelProperty("券商")
    private String couponName;

    @ExcelProperty("券的类型")
    private String couponType;

    @ExcelProperty("有效期")
    private String validDate;

    @ExcelProperty("状态")
    private String useFlag;

    @ExcelProperty("领取时间")
    private String createDate;

    @ExcelProperty("面签时间")
    private String updateDate;

    @ExcelProperty("所属网点")
    private String bank1;

    @ExcelProperty("支行")
    private String bank2;

    @ExcelProperty("分行")
    private String bank3;

    @ExcelIgnore
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private Map<String, Object> params;

    public Map<String, Object> getParams()
    {
        if (params == null)
        {
            params = new HashMap<>();
        }
        return params;
    }

    public void setParams(Map<String, Object> params)
    {
        this.params = params;
    }

}
